home *** CD-ROM | disk | FTP | other *** search
- Path: wwwserv1.shell.nl!news
- From: "Pauwl Lⁿnow" <P.LUNOW@snrper.simis.com>
- Newsgroups: comp.lang.c++
- Subject: Re: help on syntax
- Date: 3 Jan 1996 12:45:42 GMT
- Organization: SNR Pernis
- Message-ID: <4cdtpm$6k3@wwwserv1.shell.nl>
- References: <96002.222728APCCU@CUNYVM.CUNY.EDU>
- NNTP-Posting-Host: gate.shell.nl
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 1.22 (Windows; I; 16bit)
-
- Paul,
-
- To me it looks like you should have done the following:
-
- if (c==(a-b)) // DOUBLE == is equivalence!!
- {
- cout << "a: ";
- cout << a;
- :
- :
- }
- else
- cout << "a-b.......
-
- Your if statement stops after the first COUT. the else then doesn't
- belong to anything!
-
- Use them (*{}*) but keep them matched ;^}
-
- Pauwl
-
-